"""Default path to the log file. """
logfile_default = "/var/log/xend.log"
+ """Default level of information to be logged."""
loglevel_default = 'DEBUG'
+ """Default for the flag indicating whether xend should run an http server."""
+ xend_http_server_default = 'no'
+
"""Default interface address xend listens at. """
xend_address_default = ''
"""Default port xend serves events at. """
xend_event_port_default = '8001'
- """Default inteface address xend listens at for consoles."""
+ """Default port xend serves relocation at. """
+ xend_relocation_port_default = '8002'
+
+ """Default for the flag indicating whether xend should run a unix-domain server."""
+ xend_unix_server_default = 'yes'
+
+ """Default path the unix-domain server listens at."""
+ xend_unix_path_default = '/var/lib/xend/xend-socket'
+
+ """Default interface address xend listens at for consoles."""
- console_address_default = ''
+ console_address_default = 'localhost'
"""Default port xend serves consoles at. """
console_port_base_default = '9600'
"""
return self.get_config_value('xend-address', self.xend_address_default)
+ def get_xend_relocation_address(self):
+ """Get the address xend listens at for its HTTP and event ports.
+ This defaults to the empty string which allows all hosts to connect.
+ If this is set to 'localhost' only the localhost will be able to connect
+ to the HTTP and event ports.
+ """
+ return self.get_config_value('xend-relocation-address', self.xend_relocation_address_default)
+
+ def get_xend_unix_server(self):
+ """Get the flag indicating whether xend should run a unix-domain server.
+ """
+ return self.get_config_bool("xend-unix-server", self.xend_unix_server_default)
+
+ def get_xend_unix_path(self):
+ """Get the path the xend unix-domain server listens at.
+ """
+ return self.get_config_value("xend-unix-path", self.xend_unix_path_default)
+
def get_console_address(self):
"""Get the address xend listens at for its console ports.
- This defaults to the empty string which allows all hosts to connect.
- If this is set to 'localhost' only the localhost will be able to connect
- to the console ports.
+ This defaults to 'localhost', allowing only the localhost to connect
+ to the console ports. Setting this to the empty string, allows all
+ hosts to connect.
"""
return self.get_config_value('console-address', self.console_address_default)